
<!DOCTYPE HTML>
<html lang="zh-hans" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>github 入门教程 · 雪之梦</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        <meta name="author" content="xinwuyun">
        
        
    
    
    <link rel="stylesheet" href="../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-search-plus/search.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-splitter/splitter.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-expandable-chapters-small/expandable-chapters-small.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-anchor-navigation-ex/style/plugin.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-code/plugin.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-advanced-emoji/emoji-website.css">
                
            
                
                <link rel="stylesheet" href="https://unpkg.com/gitalk/dist/gitalk.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-donate/plugin.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-icp/footer.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-mermaid-gb3/mermaid/mermaid.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    


    

        
    
    
    
    
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="speedup.html" />
    
    
    <link rel="prev" href="../git/summary/cheatsheet-translation.html" />
    

    <link href="https://xinwuyun.github.io/rss" title="雪之梦" rel="alternate" type="application/rss+xml" />

    <style>
    @media only screen and (max-width: 640px) {
        .book-header .hidden-mobile {
            display: none;
        }
    }
    </style>
    <script>
        window["gitbook-plugin-github-buttons"] = {"buttons":[{"user":"xinwuyun","repo":"xinwuyun.github.io","type":"star","size":"small"}]};
    </script>

    
        <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon">
    
    
    
    
        <link rel="apple-touch-icon-precomposed" sizes="152x152" href="/apple-touch-icon-precomposed-152.png">
    
    
        
    
    
        
    

    
    <link rel="stylesheet" href="../gitbook/gitbook-plugin-chart/c3/c3.min.css">
    <script src="../gitbook/gitbook-plugin-chart/c3/d3.min.js"></script>
    <script src="../gitbook/gitbook-plugin-chart/c3/c3.min.js"></script>
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="输入并搜索" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    
    
        
        <li>
            <a href="https://blog.xinwuyun.cn/" target="_blank" class="custom-link">技术博客</a>
        </li>
    
    

    
    <li class="divider"></li>
    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="../">
            
                <a href="../">
            
                    
                    简介
            
                </a>
            

            
        </li>
    

    
        
        <li class="header">入门教程</li>
        
        
    
        <li class="chapter " data-level="2.1" data-path="../markdown/">
            
                <a href="../markdown/">
            
                    
                    markdown 入门教程
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2" data-path="../git/">
            
                <a href="../git/">
            
                    
                    git 入门教程
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.2.1" data-path="../git/base/about.html">
            
                <a href="../git/base/about.html">
            
                    
                    初识 git
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.2.1.1" data-path="../git/base/install.html">
            
                <a href="../git/base/install.html">
            
                    
                    安装 git
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.1.2" data-path="../git/base/config.html">
            
                <a href="../git/base/config.html">
            
                    
                    配置 git
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.2.2" data-path="../git/usage/about.html">
            
                <a href="../git/usage/about.html">
            
                    
                    实战 git
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.2.2.1" data-path="../git/usage/local-repository.html">
            
                <a href="../git/usage/local-repository.html">
            
                    
                    本地仓库
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.2.2" data-path="../git/usage/version-manage.html">
            
                <a href="../git/usage/version-manage.html">
            
                    
                    版本管理
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.2.3" data-path="../git/usage/reset.html">
            
                <a href="../git/usage/reset.html">
            
                    
                    回到过去
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.2.4" data-path="../git/usage/concept.html">
            
                <a href="../git/usage/concept.html">
            
                    
                    基本概念
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.2.5" data-path="../git/usage/version-control.html">
            
                <a href="../git/usage/version-control.html">
            
                    
                    版本控制
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.2.6" data-path="../git/usage/checkout-reset.html">
            
                <a href="../git/usage/checkout-reset.html">
            
                    
                    撤销更改
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.2.7" data-path="../git/usage/delete.html">
            
                <a href="../git/usage/delete.html">
            
                    
                    删除文件
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.2.8" data-path="../git/usage/remote-repository.html">
            
                <a href="../git/usage/remote-repository.html">
            
                    
                    远程仓库
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.2.9" data-path="../git/usage/branch-manage.html">
            
                <a href="../git/usage/branch-manage.html">
            
                    
                    分支管理
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.2.2.9.1" data-path="../git/usage/branch-overview.html">
            
                <a href="../git/usage/branch-overview.html">
            
                    
                    分支总览
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.2.9.2" data-path="../git/usage/branch-merge-with-conflict.html">
            
                <a href="../git/usage/branch-merge-with-conflict.html">
            
                    
                    冲突合并
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.2.9.3" data-path="../git/usage/branch-strategy.html">
            
                <a href="../git/usage/branch-strategy.html">
            
                    
                    分支策略
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.2.9.4" data-path="../git/usage/branch-emergency-fixbug.html">
            
                <a href="../git/usage/branch-emergency-fixbug.html">
            
                    
                    紧急修复
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.2.9.5" data-path="../git/usage/branch-rebase.html">
            
                <a href="../git/usage/branch-rebase.html">
            
                    
                    变基合并
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.2.9.6" data-path="../git/usage/branch-remote.html">
            
                <a href="../git/usage/branch-remote.html">
            
                    
                    协同开发
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.2.9.7" data-path="../git/usage/local-remote-repository.html">
            
                <a href="../git/usage/local-remote-repository.html">
            
                    
                    本地和远程仓库的本质
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.2.2.10" data-path="../git/usage/tag.html">
            
                <a href="../git/usage/tag.html">
            
                    
                    里程碑式标签
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.2.3" data-path="../git/custom/about.html">
            
                <a href="../git/custom/about.html">
            
                    
                    私人定制
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.2.3.1" data-path="../git/custom/ignore.html">
            
                <a href="../git/custom/ignore.html">
            
                    
                    忽略文件
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.3.2" data-path="../git/custom/sync-remote-repo.html">
            
                <a href="../git/custom/sync-remote-repo.html">
            
                    
                    同步推送多Git仓库
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.2.4" data-path="../git/server/private.html">
            
                <a href="../git/server/private.html">
            
                    
                    搭建私服
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.5" data-path="../git/tools/about.html">
            
                <a href="../git/tools/about.html">
            
                    
                    扩展工具
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.2.5.1" data-path="../git/tools/git-bash-command.html">
            
                <a href="../git/tools/git-bash-command.html">
            
                    
                    git bash 常见命令
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.5.2" data-path="../git/tools/git-bash-relationship.html">
            
                <a href="../git/tools/git-bash-relationship.html">
            
                    
                    git bash 朋友圈
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.5.3" data-path="../git/tools/git-bash-tree.html">
            
                <a href="../git/tools/git-bash-tree.html">
            
                    
                    git bash 扩展tree命令
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.5.4" data-path="../git/tools/git-bash-extend-up.html">
            
                <a href="../git/tools/git-bash-extend-up.html">
            
                    
                    git bash 扩展命令(上)
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.5.5" data-path="../git/tools/git-bash-extend-middle.html">
            
                <a href="../git/tools/git-bash-extend-middle.html">
            
                    
                    git bash 扩展命令(中)
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.5.6" data-path="../git/tools/git-bash-extend-down.html">
            
                <a href="../git/tools/git-bash-extend-down.html">
            
                    
                    git bash 扩展命令(下)
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.5.7" data-path="../git/tools/git-submodule-quickstart.html">
            
                <a href="../git/tools/git-submodule-quickstart.html">
            
                    
                    git submodule 父子模块
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.2.6" data-path="../git/summary/about.html">
            
                <a href="../git/summary/about.html">
            
                    
                    沙海拾贝
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.2.6.1" data-path="../git/summary/common.html">
            
                <a href="../git/summary/common.html">
            
                    
                    知识速查
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.6.2" data-path="../git/summary/cheatsheet-translation.html">
            
                <a href="../git/summary/cheatsheet-translation.html">
            
                    
                    备忘录[译]
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter active" data-level="2.3" data-path="./">
            
                <a href="./">
            
                    
                    github 入门教程
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.3.1" data-path="speedup.html">
            
                <a href="speedup.html">
            
                    
                    github 访问速度太慢
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.2" data-path="badge.html">
            
                <a href="badge.html">
            
                    
                    github 徽章从何而来
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.4" data-path="../myGitbook/">
            
                <a href="../myGitbook/">
            
                    
                    gitbook 入门教程
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.4.1" data-path="../myGitbook/preparation/prepare.html">
            
                <a href="../myGitbook/preparation/prepare.html">
            
                    
                    准备阶段
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.4.1.1" data-path="../myGitbook/preparation/front-knowledge.html">
            
                <a href="../myGitbook/preparation/front-knowledge.html">
            
                    
                    前置知识
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.4.1.2" data-path="../myGitbook/preparation/environmental-requirements.html">
            
                <a href="../myGitbook/preparation/environmental-requirements.html">
            
                    
                    环境要求
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.4.2" data-path="../myGitbook/experience/preview.html">
            
                <a href="../myGitbook/experience/preview.html">
            
                    
                    快速体验
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.4.2.1" data-path="../myGitbook/experience/gitbook-cli.html">
            
                <a href="../myGitbook/experience/gitbook-cli.html">
            
                    
                    gitbook-cli 命令行操作
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.4.2.2" data-path="../myGitbook/experience/gitbook-editor.html">
            
                <a href="../myGitbook/experience/gitbook-editor.html">
            
                    
                    gitbook-editor 编辑器操作
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.4.2.3" data-path="../myGitbook/experience/gitbook-com.html">
            
                <a href="../myGitbook/experience/gitbook-com.html">
            
                    
                    gitbook.com 官网操作
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.4.3" data-path="../myGitbook/advance/advance.html">
            
                <a href="../myGitbook/advance/advance.html">
            
                    
                    高级进阶
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.4.3.1" data-path="../myGitbook/advance/plugin.html">
            
                <a href="../myGitbook/advance/plugin.html">
            
                    
                    插件介绍
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.4.3.1.1" data-path="../myGitbook/advance/plugin-practical.html">
            
                <a href="../myGitbook/advance/plugin-practical.html">
            
                    
                    实用插件
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.4.3.1.2" data-path="../myGitbook/advance/plugin-theme.html">
            
                <a href="../myGitbook/advance/plugin-theme.html">
            
                    
                    主题插件
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.4.3.1.3" data-path="../myGitbook/advance/plugin-develop.html">
            
                <a href="../myGitbook/advance/plugin-develop.html">
            
                    
                    开发插件
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.4.3.2" data-path="../myGitbook/advance/export.html">
            
                <a href="../myGitbook/advance/export.html">
            
                    
                    导出电子书
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.4.3.3" data-path="../myGitbook/advance/publish.html">
            
                <a href="../myGitbook/advance/publish.html">
            
                    
                    发布电子书
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.4.4" data-path="../myGitbook/openwrite/">
            
                <a href="../myGitbook/openwrite/">
            
                    
                    公众号引流
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.4.5" data-path="../myGitbook/seo/">
            
                <a href="../myGitbook/seo/">
            
                    
                    优化搜索
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.4.6" data-path="../myGitbook/issue/">
            
                <a href="../myGitbook/issue/">
            
                    
                    常见问题
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.4.6.1" data-path="../myGitbook/issue/rm-output-directory.html">
            
                <a href="../myGitbook/issue/rm-output-directory.html">
            
                    
                    热加载失败治标之法
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.4.6.2" data-path="../myGitbook/issue/modify-default-fold.html">
            
                <a href="../myGitbook/issue/modify-default-fold.html">
            
                    
                    初始化默认折叠效果
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.4.7" data-path="../myGitbook/reference/">
            
                <a href="../myGitbook/reference/">
            
                    
                    参考更多
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

    
        
        <li class="header">编程笔记</li>
        
        
    
        <li class="chapter " data-level="3.1" >
            
                <a target="_blank" href="https://xinwuyun.github.io/learn-java/">
            
                    
                    java 学习笔记
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.2" >
            
                <a target="_blank" href="https://xinwuyun.github.io/learn-go/">
            
                    
                    go 学习笔记
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.3" >
            
                <a target="_blank" href="https://xinwuyun.github.io/learn-php/">
            
                    
                    php 学习笔记
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.4" >
            
                <a target="_blank" href="https://xinwuyun.github.io/learn-python/">
            
                    
                    python 学习笔记
            
                </a>
            

            
        </li>
    

    
        
        <li class="header">兴趣开发</li>
        
        
    
        <li class="chapter " data-level="4.1" data-path="../zero2devops/">
            
                <a href="../zero2devops/">
            
                    
                    从零开始搭建服务器
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="4.1.1" data-path="../zero2devops/login-and-logout.html">
            
                <a href="../zero2devops/login-and-logout.html">
            
                    
                    从登录服务器开始
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.1.2" data-path="../zero2devops/docker.html">
            
                <a href="../zero2devops/docker.html">
            
                    
                    更加优雅地部署项目
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.1.3" data-path="../zero2devops/docker-get-started.html">
            
                <a href="../zero2devops/docker-get-started.html">
            
                    
                    跟着官方体验 Docker
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.1.4" data-path="../zero2devops/docker-example.html">
            
                <a href="../zero2devops/docker-example.html">
            
                    
                    快速尝鲜基于 Docker 部署项目
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.1.5" data-path="../zero2devops/aliyun-oss-static.html">
            
                <a href="../zero2devops/aliyun-oss-static.html">
            
                    
                    利用阿里云 OSS部署静态网站
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.1.6" data-path="../zero2devops/nginx-https.html">
            
                <a href="../zero2devops/nginx-https.html">
            
                    
                    免费实现https访问网站
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.1.7" data-path="../zero2devops/webhook.html">
            
                <a href="../zero2devops/webhook.html">
            
                    
                    webhook
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="4.2" data-path="../devops/">
            
                <a href="../devops/">
            
                    
                    运维部署
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="4.2.1" data-path="../devops/docker-env.html">
            
                <a href="../devops/docker-env.html">
            
                    
                    docker 环境
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.2.2" data-path="../devops/docker-ops.html">
            
                <a href="../devops/docker-ops.html">
            
                    
                    docker 操作
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.2.3" data-path="../devops/docker-compose.html">
            
                <a href="../devops/docker-compose.html">
            
                    
                    docker compose
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.2.4" data-path="../devops/docker-nginx.html">
            
                <a href="../devops/docker-nginx.html">
            
                    
                    docker + nginx
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.2.5" data-path="../devops/docker-blog.html">
            
                <a href="../devops/docker-blog.html">
            
                    
                    docker + blog
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.2.6" data-path="../devops/docker-resume.html">
            
                <a href="../devops/docker-resume.html">
            
                    
                    docker + resume
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.2.7" data-path="../devops/docker-gitbook.html">
            
                <a href="../devops/docker-gitbook.html">
            
                    
                    docker + gitbook
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.2.8" data-path="../devops/docker-bark.html">
            
                <a href="../devops/docker-bark.html">
            
                    
                    docker + Bark
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.2.9" data-path="../devops/docker-py12306.html">
            
                <a href="../devops/docker-py12306.html">
            
                    
                    docker + py12306
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.2.10" data-path="../devops/docker-mojo-Weixin.html">
            
                <a href="../devops/docker-mojo-Weixin.html">
            
                    
                    docker + mojo-Weixin
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.2.11" data-path="../devops/docker-wechat-work-message-push-go.html">
            
                <a href="../devops/docker-wechat-work-message-push-go.html">
            
                    
                    docker + wechat-work-message-push-go
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.2.12" data-path="../devops/docker-email.html">
            
                <a href="../devops/docker-email.html">
            
                    
                    docker + email
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.2.13" data-path="../devops/docker-mysql.html">
            
                <a href="../devops/docker-mysql.html">
            
                    
                    docker + mysql
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.2.14" data-path="../devops/docker-springboot.html">
            
                <a href="../devops/docker-springboot.html">
            
                    
                    docker + springboot
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.2.15" data-path="../devops/docker-redis.html">
            
                <a href="../devops/docker-redis.html">
            
                    
                    docker + redis
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.2.16" data-path="../devops/docker-gogs.html">
            
                <a href="../devops/docker-gogs.html">
            
                    
                    docker + gogs
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.2.17" data-path="../devops/docker-gitlab.html">
            
                <a href="../devops/docker-gitlab.html">
            
                    
                    docker + gitlab
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.2.18" data-path="../devops/docker-gitea.html">
            
                <a href="../devops/docker-gitea.html">
            
                    
                    docker + gitea
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.2.19" data-path="../devops/docker-crawlab.html">
            
                <a href="../devops/docker-crawlab.html">
            
                    
                    docker + crawlab
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="4.3" data-path="../tools/">
            
                <a href="../tools/">
            
                    
                    工具资源
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="4.3.1" data-path="../tools/mac-install-vmware.html">
            
                <a href="../tools/mac-install-vmware.html">
            
                    
                    给 mac 装个 vmware 虚拟机
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="4.3.1.1" data-path="../tools/mac-vmware-install-windows.html">
            
                <a href="../tools/mac-vmware-install-windows.html">
            
                    
                    给 mac 虚拟机装个 windows
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.3.1.2" data-path="../tools/mac-vmware-install-centos.html">
            
                <a href="../tools/mac-vmware-install-centos.html">
            
                    
                    给 mac 虚拟机装个 centos
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.3.1.3" data-path="../tools/mac-vmware-install-ubuntu.html">
            
                <a href="../tools/mac-vmware-install-ubuntu.html">
            
                    
                    给 mac 虚拟机装个 ubuntu
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="4.3.2" data-path="../tools/windows-install-vmware.html">
            
                <a href="../tools/windows-install-vmware.html">
            
                    
                    给 windows 装个 vmware 虚拟机
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="4.3.2.1" data-path="../tools/windows-vmware-install-mac.html">
            
                <a href="../tools/windows-vmware-install-mac.html">
            
                    
                    给 windows 虚拟机装个 mac
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.3.2.2" data-path="../tools/windows-vmware-install-windows.html">
            
                <a href="../tools/windows-vmware-install-windows.html">
            
                    
                    给 windows 虚拟机装个 windows
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.3.2.3" data-path="../tools/windows-vmware-install-centos.html">
            
                <a href="../tools/windows-vmware-install-centos.html">
            
                    
                    给 windows 虚拟机装个 centos
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.3.2.4" data-path="../tools/windows-vmware-install-ubuntu.html">
            
                <a href="../tools/windows-vmware-install-ubuntu.html">
            
                    
                    给 windows 虚拟机装个 ubuntu
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="4.3.3" data-path="../tools/wechat-history-article-backup.html">
            
                <a href="../tools/wechat-history-article-backup.html">
            
                    
                    公众号历史文章备份
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="4.3.3.1" data-path="../tools/wechat-backup-xuezhimengjishuyizhan.html">
            
                <a href="../tools/wechat-backup-xuezhimengjishuyizhan.html">
            
                    
                    雪之梦技术驿站
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.3.3.2" data-path="../tools/wechat-backup-sushengbuhuo.html">
            
                <a href="../tools/wechat-backup-sushengbuhuo.html">
            
                    
                    苏生不惑
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.3.3.3" data-path="../tools/wechat-backup-pythonjishu.html">
            
                <a href="../tools/wechat-backup-pythonjishu.html">
            
                    
                    Python技术
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="4.3.4" data-path="../tools/chrome-extend-learn.html">
            
                <a href="../tools/chrome-extend-learn.html">
            
                    
                    学会开发专属 chrome 插件
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.3.5" data-path="../tools/12306-algorithm-web-js.html">
            
                <a href="../tools/12306-algorithm-web-js.html">
            
                    
                    攻克 12306 前端加密算法
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="4.4" data-path="../write/">
            
                <a href="../write/">
            
                    
                    如何写作
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="4.4.1" data-path="../write/markdownOrRichText.html">
            
                <a href="../write/markdownOrRichText.html">
            
                    
                    markdown 和富文本
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.4.2" data-path="../write/markdown2richText.html">
            
                <a href="../write/markdown2richText.html">
            
                    
                    markdown 转富文本
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.4.3" data-path="../write/static-semi-manual-with-csv.html">
            
                <a href="../write/static-semi-manual-with-csv.html">
            
                    
                    csv 半手动数据统计
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.4.4" data-path="../write/static-semi-manual-with-js.html">
            
                <a href="../write/static-semi-manual-with-js.html">
            
                    
                    js 半手动数据统计
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.4.5" data-path="../write/jianshu-optimize-static.html">
            
                <a href="../write/jianshu-optimize-static.html">
            
                    
                    简述优选文章统计
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.4.6" data-path="../write/mermaid-flow-chart.html">
            
                <a href="../write/mermaid-flow-chart.html">
            
                    
                    快速上手Mermaid流程图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.4.7" data-path="../write/faq.html">
            
                <a href="../write/faq.html">
            
                    
                    常见问题
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

    
        
        <li class="header">读书观感</li>
        
        
    
        <li class="chapter " data-level="5.1" data-path="../bigDataWave/">
            
                <a href="../bigDataWave/">
            
                    
                    大数据浪潮之巅:新技术商业制胜之道
            
                </a>
            

            
        </li>
    

    
        
        <li class="header">程序人生</li>
        
        
    
        <li class="chapter " data-level="6.1" data-path="../todo/">
            
                <a href="../todo/">
            
                    
                    待完成清单
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="6.1.1" data-path="../todo/yarn-quickstart.html">
            
                <a href="../todo/yarn-quickstart.html">
            
                    
                    yarn快速入门
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="6.1.2" data-path="../todo/gulp-quickstart.html">
            
                <a href="../todo/gulp-quickstart.html">
            
                    
                    gulp快速入门
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="6.1.3" data-path="../todo/nvm-quickstart.html">
            
                <a href="../todo/nvm-quickstart.html">
            
                    
                    nvm快速入门
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="6.1.4" data-path="../todo/lodash-quickstart.html">
            
                <a href="../todo/lodash-quickstart.html">
            
                    
                    lodash快速入门
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="6.1.5" data-path="../todo/regexper-quickstart.html">
            
                <a href="../todo/regexper-quickstart.html">
            
                    
                    regexper快速入门
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="6.1.6" data-path="../todo/sublime-quickstart.html">
            
                <a href="../todo/sublime-quickstart.html">
            
                    
                    sublime快速入门
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="6.1.7" data-path="../todo/github-quickstart.html">
            
                <a href="../todo/github-quickstart.html">
            
                    
                    github 快速入门
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="6.1.8" data-path="../todo/svn-quickstart.html">
            
                <a href="../todo/svn-quickstart.html">
            
                    
                    svn 快速入门
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="6.1.9" data-path="../todo/java-quickstart.html">
            
                <a href="../todo/java-quickstart.html">
            
                    
                    java 快速入门
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="6.1.10" data-path="../todo/mysql-quickstart.html">
            
                <a href="../todo/mysql-quickstart.html">
            
                    
                    mysql 快速入门
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="6.1.11" data-path="../todo/maven-quickstart.html">
            
                <a href="../todo/maven-quickstart.html">
            
                    
                    maven 快速入门
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="6.1.12" data-path="../todo/tomcat-quickstart.html">
            
                <a href="../todo/tomcat-quickstart.html">
            
                    
                    tomcat 快速入门
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="6.1.13" data-path="../todo/gitignore-quickstart.html">
            
                <a href="../todo/gitignore-quickstart.html">
            
                    
                    gitignore 快速入门
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="6.1.14" data-path="../todo/gitignore-as.html">
            
                <a href="../todo/gitignore-as.html">
            
                    
                    android studio 快速入门
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="6.1.15" data-path="../todo/npm.html">
            
                <a href="../todo/npm.html">
            
                    
                    npm 快速入门
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="6.1.16" data-path="../todo/nginx.html">
            
                <a href="../todo/nginx.html">
            
                    
                    nginx 快速入门
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="6.2" data-path="../other/">
            
                <a href="../other/">
            
                    
                    其他
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="6.2.1" data-path="../other/dev-env-install.html">
            
                <a href="../other/dev-env-install.html">
            
                    
                    重装开发环境
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="6.2.2" data-path="../other/dingtalk-reminder.html">
            
                <a href="../other/dingtalk-reminder.html">
            
                    
                    钉钉签到提醒
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="6.2.3" data-path="../other/reminder.html">
            
                <a href="../other/reminder.html">
            
                    
                    倒计时提醒
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="6.2.4" data-path="../other/focus-website.html">
            
                <a href="../other/focus-website.html">
            
                    
                    关注网站
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="6.2.5" data-path="../other/transformation.html">
            
                <a href="../other/transformation.html">
            
                    
                    转型之路
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="6.2.6" data-path="../other/static.html">
            
                <a href="../other/static.html">
            
                    
                    历史统计
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="6.2.7" data-path="../other/me.html">
            
                <a href="../other/me.html">
            
                    
                    关于作者
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="6.2.8" data-path="../other/donate.html">
            
                <a href="../other/donate.html">
            
                    
                    捐赠支持
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

    
        
        <li class="header">开源项目</li>
        
        
    
        <li class="chapter " data-level="7.1" data-path="../opensource/gitbook/">
            
                <a href="../opensource/gitbook/">
            
                    
                    gitbook 插件项目
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="7.1.1" >
            
                <a target="_blank" href="https://xinwuyun.github.io/gitbook-official/">
            
                    
                    gitbook-official
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="7.1.2" >
            
                <a target="_blank" href="https://xinwuyun.github.io/gitbook-plugin-mygitalk/">
            
                    
                    gitbook-plugin-mygitalk
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="7.1.3" >
            
                <a target="_blank" href="https://xinwuyun.github.io/gitbook-plugin-readmore/">
            
                    
                    gitbook-plugin-readmore
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="7.1.4" >
            
                <a target="_blank" href="https://xinwuyun.github.io/gitbook-plugin-favicon-absolute/">
            
                    
                    gitbook-plugin-favicon-absolute
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="7.1.5" >
            
                <a target="_blank" href="https://xinwuyun.github.io/gitbook-plugin-copyright/">
            
                    
                    gitbook-plugin-copyright
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="7.1.6" >
            
                <a target="_blank" href="https://xinwuyun.github.io/gitbook-plugin-edit-link-plus/">
            
                    
                    gitbook-plugin-edit-link-plus
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="7.1.7" >
            
                <a target="_blank" href="https://xinwuyun.github.io/gitbook-plugin-multilingual-index/">
            
                    
                    gitbook-plugin-multilingual-index
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="7.1.8" >
            
                <a target="_blank" href="https://xinwuyun.github.io/gitbook-plugin-icp/">
            
                    
                    gitbook-plugin-icp
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="7.1.9" >
            
                <a target="_blank" href="https://xinwuyun.github.io/gitbook-plugin-diff/">
            
                    
                    gitbook-plugin-diff
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="7.1.10" >
            
                <a target="_blank" href="https://xinwuyun.github.io/gitbook-plugin-simple-mind-map/">
            
                    
                    gitbook-plugin-simple-mind-map
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="7.1.11" >
            
                <a target="_blank" href="https://xinwuyun.github.io/gitbook-plugin-punctuation-converter/">
            
                    
                    gitbook-plugin-punctuation-converter
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="7.1.12" >
            
                <a target="_blank" href="https://xinwuyun.github.io/gitbook-plugin-baidu-tongji-with-multiple-channel/">
            
                    
                    gitbook-plugin-baidu-tongji-with-multiple-channel
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="7.1.13" >
            
                <a target="_blank" href="https://xinwuyun.github.io/gitbook-plugin-google-tongji-with-multiple-channel/">
            
                    
                    gitbook-plugin-google-tongji-with-multiple-channel
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="7.2" data-path="../opensource/hexo/">
            
                <a href="../opensource/hexo/">
            
                    
                    hexo 插件项目
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="7.2.1" >
            
                <a target="_blank" href="https://xinwuyun.github.io/hexo-plugin-gitalk/">
            
                    
                    hexo-plugin-gitalk
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="7.2.2" >
            
                <a target="_blank" href="https://xinwuyun.github.io/hexo-plugin-readmore/">
            
                    
                    hexo-plugin-readmore
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="7.3" >
            
                <a target="_blank" href="https://security-plus.github.io/">
            
                    
                    security-plus
            
                </a>
            

            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="_blank" class="gitbook-link">
            本书使用 GitBook 发布
        </a>
    </li>

    
    <li>
        &copy 2009-2021 xinwuyun.cn 版权所有 
        
        
            
        
        
            <a href="https://beian.miit.gov.cn/" target="_blank" class="gitbook-link">
                浙ICP备18042346号
            </a>
        
    </li>
    
</ul>

                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href=".." >github 入门教程</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div class="search-plus" id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <div id="anchor-navigation-ex-navbar"><i class="fa fa-navicon"></i><ul><li><span class="title-icon "></span><a href="#github-&#x5165;&#x95E8;&#x6559;&#x7A0B;"><b>1. </b>github &#x5165;&#x95E8;&#x6559;&#x7A0B;</a></li><ul><li><span class="title-icon "></span><a href="#&#x6CE8;&#x518C;-github-&#x8D26;&#x53F7;"><b>1.1. </b>&#x6CE8;&#x518C; github &#x8D26;&#x53F7;</a></li><li><span class="title-icon "></span><a href="#&#x914D;&#x7F6E;-github"><b>1.2. </b>&#x914D;&#x7F6E; github</a></li><li><span class="title-icon "></span><a href="#&#x521B;&#x5EFA;&#x8FDC;&#x7A0B;&#x4ED3;&#x5E93;"><b>1.3. </b>&#x521B;&#x5EFA;&#x8FDC;&#x7A0B;&#x4ED3;&#x5E93;</a></li><li><span class="title-icon "></span><a href="#&#x514B;&#x9686;&#x5230;&#x672C;&#x5730;&#x4ED3;&#x5E93;"><b>1.4. </b>&#x514B;&#x9686;&#x5230;&#x672C;&#x5730;&#x4ED3;&#x5E93;</a></li><li><span class="title-icon "></span><a href="#&#x6DFB;&#x52A0;&#x4ED3;&#x5E93;&#x5173;&#x8054;"><b>1.5. </b>&#x6DFB;&#x52A0;&#x4ED3;&#x5E93;&#x5173;&#x8054;</a></li><li><span class="title-icon "></span><a href="#&#x67E5;&#x770B;&#x8FDC;&#x7A0B;&#x4ED3;&#x5E93;"><b>1.6. </b>&#x67E5;&#x770B;&#x8FDC;&#x7A0B;&#x4ED3;&#x5E93;</a></li><li><span class="title-icon "></span><a href="#&#x4E0B;&#x8F7D;&#x8FDC;&#x7A0B;&#x4ED3;&#x5E93;"><b>1.7. </b>&#x4E0B;&#x8F7D;&#x8FDC;&#x7A0B;&#x4ED3;&#x5E93;</a></li><li><span class="title-icon "></span><a href="#&#x62C9;&#x53D6;&#x8FDC;&#x7A0B;&#x4ED3;&#x5E93;"><b>1.8. </b>&#x62C9;&#x53D6;&#x8FDC;&#x7A0B;&#x4ED3;&#x5E93;</a></li><li><span class="title-icon "></span><a href="#&#x63A8;&#x9001;&#x8FDC;&#x7A0B;&#x5206;&#x652F;"><b>1.9. </b>&#x63A8;&#x9001;&#x8FDC;&#x7A0B;&#x5206;&#x652F;</a></li><li><span class="title-icon "></span><a href="#&#x5220;&#x9664;&#x8FDC;&#x7A0B;&#x4ED3;&#x5E93;"><b>1.10. </b>&#x5220;&#x9664;&#x8FDC;&#x7A0B;&#x4ED3;&#x5E93;</a></li></ul></ul></div><a href="#github-&#x5165;&#x95E8;&#x6559;&#x7A0B;" id="anchorNavigationExGoTop"><i class="fa fa-arrow-up"></i></a><h1 id="github-&#x5165;&#x95E8;&#x6559;&#x7A0B;"><a name="github-&#x5165;&#x95E8;&#x6559;&#x7A0B;" class="anchor-navigation-ex-anchor" href="#github-&#x5165;&#x95E8;&#x6559;&#x7A0B;"><i class="fa fa-link" aria-hidden="true"></i></a>1. github &#x5165;&#x95E8;&#x6559;&#x7A0B;</h1>
<p><code>github</code> &#x662F;&#x4E00;&#x4E2A;&#x57FA;&#x4E8E; <code>git</code> &#x7684;&#x4EE3;&#x7801;&#x6258;&#x7BA1;&#x5E73;&#x53F0;,&#x662F;&#x5E73;&#x65F6;&#x5DE5;&#x4F5C;&#x5B66;&#x4E60;&#x7684;&#x597D;&#x5E2E;&#x624B;,&#x5B66;&#x4F1A;&#x5982;&#x4F55;&#x7528;&#x597D; <code>github</code> &#x7F51;&#x7AD9;&#x80FD;&#x591F;&#x5E2E;&#x52A9;&#x6211;&#x4EEC;&#x66F4;&#x597D;&#x5206;&#x4EAB;&#x4EE3;&#x7801;&#x6216;&#x8005;&#x4E0E;&#x5176;&#x4ED6;&#x5F00;&#x53D1;&#x4EBA;&#x5458;&#x5408;&#x4F5C;.</p>
<p><img src="images/github.png" alt="github"></p>
<h2 id="&#x6CE8;&#x518C;-github-&#x8D26;&#x53F7;"><a name="&#x6CE8;&#x518C;-github-&#x8D26;&#x53F7;" class="anchor-navigation-ex-anchor" href="#&#x6CE8;&#x518C;-github-&#x8D26;&#x53F7;"><i class="fa fa-link" aria-hidden="true"></i></a>1.1. &#x6CE8;&#x518C; github &#x8D26;&#x53F7;</h2>
<p>&#x9996;&#x5148;&#x51C6;&#x5907;&#x597D;&#x90AE;&#x7BB1;&#x548C;&#x5BC6;&#x7801;,&#x7136;&#x540E;&#x5728; <a href="https://github.com" target="_blank">github &#x5B98;&#x7F51;</a>&#x6CE8;&#x518C;&#x65B0;&#x8D26;&#x53F7;,&#x548C;&#x5927;&#x591A;&#x6570;&#x7F51;&#x7AD9;&#x7C7B;&#x4F3C;&#x7684;&#x6CE8;&#x518C;&#x6D41;&#x7A0B;,&#x552F;&#x4E00;&#x6CE8;&#x610F;&#x7684;&#x662F;&#x4F60;&#x8981;&#x60F3;&#x597D;&#x6CE8;&#x518C;&#x7C7B;&#x578B;,&#x9488;&#x5BF9;&#x4E2A;&#x4EBA;&#x7528;&#x6237;&#x6765;&#x8BF4;,&#x4E00;&#x822C;&#x65E0;&#x5916;&#x4E4E;&#x4E2A;&#x4EBA;&#x8D26;&#x53F7;&#x548C;&#x9879;&#x76EE;&#x8D26;&#x53F7;&#x4E24;&#x79CD;,&#x6BD4;&#x5982; <a href="https://github.com/xinwuyun" target="_blank">xinwuyun</a> &#x5C31;&#x8BA4;&#x4E3A;&#x662F;&#x4E2A;&#x4EBA;&#x8D26;&#x53F7;,&#x800C;&#x8FD9;&#x79CD; <a href="https://github.com/security-plus" target="_blank">security-plus</a> &#x8BA4;&#x4E3A;&#x662F;&#x9879;&#x76EE;&#x8D26;&#x53F7;.</p>
<p>&#x5176;&#x5B9E;&#x8FD9;&#x4E24;&#x79CD;&#x8D26;&#x53F7;&#x5BF9;&#x4E8E; <code>github</code> &#x6765;&#x8BF4;&#x662F;&#x4E00;&#x6837;&#x7684;,&#x4E0D;&#x50CF;&#x662F;&#x4E2A;&#x4EBA;&#x8D26;&#x53F7;&#x540C;&#x4F01;&#x4E1A;&#x8D26;&#x53F7;&#x7684;&#x5DEE;&#x5F02;&#x90A3;&#x4E48;&#x5927;,&#x90A3;&#x4E3A;&#x4EC0;&#x4E48;&#x79F0;&#x4E2A;&#x4EBA;&#x8D26;&#x53F7;&#x548C;&#x9879;&#x76EE;&#x8D26;&#x53F7;&#x5462;?
&#x662F;&#x56E0;&#x4E3A;,&#x5927;&#x591A;&#x6570;&#x4E2A;&#x4EBA;&#x5F00;&#x53D1;&#x8005;&#x540D;&#x4E0B;&#x4F1A;&#x6709;&#x591A;&#x6B3E;&#x5F00;&#x6E90;&#x4F5C;&#x54C1;,&#x8FD9;&#x4E9B;&#x4F5C;&#x54C1;&#x65E2;&#x53EF;&#x4EE5;&#x5168;&#x90E8;&#x6302;&#x8F7D;&#x5728;&#x67D0;&#x4E00;&#x4E2A;&#x5F00;&#x53D1;&#x8005;&#x8D26;&#x53F7;&#x4E0B;&#x9762;,&#x4E5F;&#x53EF;&#x4EE5;&#x5355;&#x72EC;&#x6302;&#x8F7D;&#x67D0;&#x4E00;&#x4E2A;&#x5F00;&#x53D1;&#x8005;&#x8D26;&#x53F7;&#x4E0B;&#x9762;,&#x5982;&#x679C;&#x6B64;&#x65F6;&#x7684;&#x8D26;&#x53F7;&#x540D;&#x6070;&#x597D;&#x662F;&#x9879;&#x76EE;&#x540D;&#x5C82;&#x4E0D;&#x662F;&#x6E05;&#x6670;&#x591A;&#x4E86;?</p>
<p>&#x56E0;&#x4E3A;&#x4E2A;&#x4EBA;&#x521A;&#x5F00;&#x59CB;&#x53EF;&#x80FD;&#x5E76;&#x6CA1;&#x591A;&#x5927;&#x540D;&#x6C14;,&#x5982;&#x679C;&#x4E00;&#x4E2A;&#x4EA7;&#x54C1;&#x76F4;&#x63A5;&#x6302;&#x8F7D;&#x5728;&#x4E2A;&#x4EBA;&#x540D;&#x4E0B;,&#x90A3;&#x4E48;&#x8FD9;&#x4E2A;&#x4EA7;&#x54C1;&#x5F88;&#x5927;&#x7A0B;&#x5EA6;&#x4E0A;&#x5C31;&#x4F9D;&#x8D56;&#x4E8E;&#x4E2A;&#x4EBA;&#x540D;&#x6C14;&#x4E86;,&#x6240;&#x4EE5;&#x4E0D;&#x59A8;&#x53CD;&#x8FC7;&#x6765;,&#x7528;&#x4EA7;&#x54C1;&#x8BF4;&#x8BDD;,&#x4E8B;&#x5B9E;&#x80DC;&#x4E8E;&#x96C4;&#x8FA9;,&#x8FD9;&#x79CD;&#x505A;&#x6CD5;&#x4E5F;&#x662F;&#x4E00;&#x79CD;&#x5E38;&#x7528;&#x7684;&#x5BA3;&#x4F20;&#x624B;&#x6BB5;,&#x5F88;&#x591A;&#x4E2A;&#x4EBA;&#x5F00;&#x6E90;&#x4EA7;&#x54C1;&#x6B63;&#x662F;&#x8FD9;&#x4E48;&#x505A;&#x7684;!</p>
<p>&#x9664;&#x6B64;&#x4E4B;&#x5916;&#x9879;&#x76EE;&#x8D26;&#x53F7;&#x8FD8;&#x6709;&#x4E00;&#x4E2A;&#x597D;&#x5904;,&#x5229;&#x7528; <code>github</code> &#x7684;&#x9759;&#x6001;&#x7F51;&#x7AD9;&#x6258;&#x7BA1;&#x670D;&#x52A1;&#x53EF;&#x4EE5;&#x514D;&#x8D39;&#x5FEB;&#x901F;&#x642D;&#x5EFA;&#x9879;&#x76EE;&#x5B98;&#x7F51;,&#x53EA;&#x8981;&#x521B;&#x5EFA;&#x4E00;&#x4E2A;<code>xinwuyun.github.io</code> &#x7684;&#x9879;&#x76EE;,&#x90A3;&#x4E48;&#x8FD9;&#x4E2A;&#x9879;&#x76EE;&#x5C31;&#x53EF;&#x4EE5;&#x4F5C;&#x4E3A;&#x9759;&#x6001;&#x7F51;&#x7AD9;&#x7684;&#x6E90;&#x7801;&#x9879;&#x76EE;&#x4E86;,&#x8BBF;&#x95EE; <a href="https://xinwuyun.github.io" target="_blank">https://xinwuyun.github.io</a> &#x5C31;&#x80FD;&#x770B;&#x5230;&#x9879;&#x76EE;&#x5B98;&#x7F51;&#x4E86;!</p>
<blockquote>
<p>&#x6CE8;&#x610F;: xinwuyun&#x4EC5;&#x4EC5;&#x662F;&#x7B14;&#x8005;&#x7528;&#x6237;&#x540D;,&#x5B9E;&#x9645;&#x9700;&#x8981;&#x66FF;&#x6362;&#x6210;&#x8BFB;&#x8005;&#x7684;&#x7528;&#x6237;&#x540D;</p>
</blockquote>
<p><img src="images/xinwuyun.github.io.png" alt="xinwuyun.github.io"></p>
<h2 id="&#x914D;&#x7F6E;-github"><a name="&#x914D;&#x7F6E;-github" class="anchor-navigation-ex-anchor" href="#&#x914D;&#x7F6E;-github"><i class="fa fa-link" aria-hidden="true"></i></a>1.2. &#x914D;&#x7F6E; github</h2>
<p>&#x65E2;&#x7136;&#x9879;&#x76EE;&#x5DF2;&#x7ECF;&#x6258;&#x7BA1;&#x5230; <code>github</code> &#x7F51;&#x7AD9;,&#x90A3;&#x672C;&#x5730;&#x5982;&#x4F55;&#x8BBF;&#x95EE;&#x5230;&#x8FDC;&#x7A0B;&#x4ED3;&#x5E93;&#x5462;?&#x5E38;&#x7528;&#x7684;&#x65B9;&#x5F0F;&#x6709;&#x4E24;&#x79CD;,&#x4E00;&#x79CD;&#x662F; <code>https</code> &#x65B9;&#x5F0F;,&#x6BCF;&#x6B21;&#x90FD;&#x9700;&#x8981;&#x8F93;&#x5165;&#x5BC6;&#x7801;,&#x53E6;&#x5916;&#x4E00;&#x79CD;&#x662F; <code>ssh</code> &#x65B9;&#x5F0F;,&#x53EA;&#x9700;&#x8981;&#x4E00;&#x6B21;&#x914D;&#x7F6E;<code>ssh</code> &#x5BC6;&#x94A5;&#x5BF9;.</p>
<p>&#x8FD9;&#x91CC;&#x6211;&#x4EEC;&#x91CD;&#x70B9;&#x4ECB;&#x7ECD;&#x6700;&#x5E38;&#x7528;&#x4E5F;&#x662F;&#x6700;&#x65B9;&#x4FBF;&#x7684;&#x7B2C;&#x4E8C;&#x79CD; <code>ssh</code> &#x65B9;&#x5F0F;&#x8BBF;&#x95EE; <code>github</code> ,&#x5927;&#x81F4;&#x601D;&#x8DEF;&#x662F;&#x672C;&#x5730;&#x751F;&#x6210;&#x5BC6;&#x94A5;&#x5BF9;,&#x7136;&#x540E;&#x5C06;&#x516C;&#x94A5;&#x4E0A;&#x4F20;&#x7ED9; <code>github</code> &#x8868;&#x660E;&#x8EAB;&#x4EFD;,&#x4E4B;&#x540E;&#x672C;&#x5730;&#x518D;&#x6B21;&#x63A8;&#x9001;&#x7ED9;&#x8FDC;&#x7A0B;&#x4ED3;&#x5E93;&#x65F6;,<code>github</code> &#x81EA;&#x7136;&#x5C31;&#x80FD;&#x8BC6;&#x522B;&#x5230;&#x6211;&#x4EEC;&#x8EAB;&#x4EFD;&#x4E86;.</p>
<p><strong>&#x7B2C;&#x4E00;&#x6B65;: &#x751F;&#x6210;&#x5BC6;&#x94A5;&#x5BF9;</strong></p>
<p>&#x9ED8;&#x8BA4;&#x60C5;&#x51B5;&#x4E0B;,&#x4F1A;&#x5728;&#x5F53;&#x524D;&#x7528;&#x6237;&#x76EE;&#x5F55;&#x4E0B;&#x751F;&#x6210;&#x4E00;&#x5BF9;&#x5BC6;&#x94A5;&#x5BF9;.</p>
<pre><code>ssh-keygen -t rsa -C &quot;youremail@example.com&quot;
</code></pre><p>&#x8FD9;&#x91CC;&#x7684;&#x90AE;&#x7BB1; <code>youremail@example.com</code> &#x9700;&#x8981;&#x586B;&#x5199;&#x81EA;&#x5DF1;&#x7684; <code>github</code> &#x90AE;&#x7BB1;,&#x4E4B;&#x540E;&#x4F1A;&#x63D0;&#x793A;&#x8F93;&#x5165;&#x8DEF;&#x5F84;&#x548C;&#x5BC6;&#x7801;,&#x4E00;&#x8DEF;&#x56DE;&#x8F66;&#x91C7;&#x7528;&#x9ED8;&#x8BA4;&#x503C;&#x5373;&#x53EF;,&#x8FD0;&#x884C;&#x7ED3;&#x675F;&#x540E;&#x4F1A;&#x5728;&#x5F53;&#x524D;&#x7528;&#x6237;&#x76EE;&#x5F55;&#x4E0B;
&#x751F;&#x6210;&#x4E00;&#x5BF9;&#x5BC6;&#x94A5;&#x5BF9;,&#x5305;&#x62EC;&#x516C;&#x94A5;&#x548C;&#x79C1;&#x94A5;.&#x5176;&#x4E2D;&#x516C;&#x94A5;&#x53EF;&#x4EE5;&#x53D1;&#x9001;&#x7ED9;&#x4EFB;&#x4F55;&#x4EBA;,&#x800C;&#x79C1;&#x94A5;&#x5343;&#x4E07;&#x4E0D;&#x53EF;&#x6CC4;&#x9732;.</p>
<p><strong>&#x7B2C;&#x4E8C;&#x6B65;: &#x590D;&#x5236;&#x516C;&#x94A5;</strong></p>
<p>&#x5728;&#x5F53;&#x524D;&#x7528;&#x6237;&#x6839;&#x76EE;&#x5F55;&#x4E0B;&#x6253;&#x5F00; <code>.ssh</code> &#x76EE;&#x5F55;,&#x5176;&#x4E2D;&#x5305;&#x62EC;&#x4E24;&#x4E2A;&#x6587;&#x4EF6;,&#x4E00;&#x4E2A;&#x662F;&#x516C;&#x94A5; <code>id_rsa.pub</code> ,&#x53E6;&#x4E00;&#x4E2A;&#x662F;&#x79C1;&#x94A5; <code>id_rsa</code>,&#x7528;&#x8BB0;&#x4E8B;&#x672C;&#x6216;&#x8005;&#x5176;&#x4ED6;&#x65B9;&#x5F0F;&#x6253;&#x5F00;&#x516C;&#x94A5;&#x6587;&#x4EF6;,&#x590D;&#x5236;&#x5176;&#x4E2D;&#x5185;&#x5BB9;,&#x51C6;&#x5907;&#x7C98;&#x8D34;&#x5230;<code>github</code> &#x76F8;&#x5173;&#x8BBE;&#x7F6E;&#x9879;.</p>
<pre><code># &#x67E5;&#x770B;&#x5F53;&#x524D;&#x7528;&#x6237;&#x4E0B;&#x7684; ssh &#x76EE;&#x5F55;
ls ~/.ssh

# &#x67E5;&#x770B;&#x751F;&#x6210;&#x7684;&#x516C;&#x94A5;&#x5185;&#x5BB9;
cat ~/.ssh/id_rsa.pub
</code></pre><p><strong>&#x7B2C;&#x4E09;&#x6B65;: &#x8BBE;&#x7F6E; github</strong></p>
<p>&#x56DE;&#x5230; <code>github</code>,&#x70B9;&#x51FB;&#x5934;&#x50CF;(Acount),&#x9009;&#x62E9;&#x8BBE;&#x7F6E;(Settings),&#x518D;&#x9009;&#x62E9;&#x5DE6;&#x4FA7;&#x7684; SSH and GPG keys,&#x70B9;&#x51FB;&#x53F3;&#x4FA7;&#x7684;NEW SSH Key,&#x7136;&#x540E;&#x586B;&#x5199;&#x6807;&#x9898;(Title),&#x6700;&#x597D;&#x662F;&#x6709;&#x610F;&#x4E49;&#x7684;&#x540D;&#x79F0;,&#x6BD4;&#x5982;<code>youremail@example.com for github</code>,&#x5BC6;&#x94A5;(Key)&#x586B;&#x5199;&#x4E0A;&#x4E00;&#x8FB9;&#x751F;&#x6210;&#x7684;&#x516C;&#x94A5;,&#x4E00;&#x822C;&#x662F;&#x4EE5;<code>ssh-rsa</code> &#x5F00;&#x5934;&#x7684;&#x4E00;&#x5927;&#x4E32;&#x5B57;&#x7B26;,&#x6700;&#x540E;&#x4FDD;&#x5B58;(Add SSH Key).</p>
<p><img src="images/github-setting.png" alt="github-setting.png">
<img src="images/github-ssh.png" alt="github-ssh.png"></p>
<p><strong>&#x7B2C;&#x56DB;&#x6B65;: &#x9A8C;&#x8BC1; ssh</strong></p>
<p>&#x5229;&#x7528; <code>ssh</code> &#x534F;&#x8BAE;&#x6D4B;&#x8BD5;&#x4E00;&#x4E0B;&#x662F;&#x5426;&#x80FD;&#x591F;&#x6B63;&#x5E38;&#x8BBF;&#x95EE; <code>github</code> &#x7F51;&#x7AD9;,&#x5982;&#x679C;&#x51FA;&#x73B0;&#x6210;&#x529F;&#x63D0;&#x793A;,&#x90A3;&#x5C31;&#x8BC1;&#x660E;&#x6211;&#x4EEC;&#x7684;&#x914D;&#x7F6E;&#x6CA1;&#x95EE;&#x9898;.</p>
<pre><code>ssh -T git@github.com
</code></pre><h2 id="&#x521B;&#x5EFA;&#x8FDC;&#x7A0B;&#x4ED3;&#x5E93;"><a name="&#x521B;&#x5EFA;&#x8FDC;&#x7A0B;&#x4ED3;&#x5E93;" class="anchor-navigation-ex-anchor" href="#&#x521B;&#x5EFA;&#x8FDC;&#x7A0B;&#x4ED3;&#x5E93;"><i class="fa fa-link" aria-hidden="true"></i></a>1.3. &#x521B;&#x5EFA;&#x8FDC;&#x7A0B;&#x4ED3;&#x5E93;</h2>
<p>&#x767B;&#x5F55; <code>github</code> &#x7F51;&#x7AD9;&#x65B0;&#x5EFA;&#x8FDC;&#x7A0B;&#x4ED3;&#x5E93;(New Repository),&#x4F8B;&#x5982;<code>git-demo</code>,&#x9ED8;&#x8BA4;&#x6743;&#x9650;&#x662F;&#x516C;&#x5F00;&#x7684;(public),&#x4E5F;&#x53EF;&#x4EE5;&#x9009;&#x62E9;&#x79C1;&#x6709;&#x7684;(private),&#x521D;&#x59CB;&#x5316; <code>README.md</code> &#x6587;&#x4EF6;&#x548C; <code>.gitignore</code> &#x6587;&#x4EF6;&#x4EE5;&#x53CA;&#x9009;&#x62E9;&#x5F00;&#x6E90;&#x534F;&#x8BAE;&#x8FD9;&#x4E9B;&#x90FD;&#x662F;&#x53EF;&#x9009;&#x7684;,&#x89C6;&#x5177;&#x4F53;&#x60C5;&#x51B5;&#x800C;&#x5B9A;.</p>
<p><img src="images/github-new-repository.png" alt="github-new-repository.png"></p>
<p>&#x5237;&#x65B0;&#x5F53;&#x524D;&#x9875;&#x9762;,&#x5E94;&#x8BE5;&#x80FD;&#x5230;&#x770B;&#x5230;&#x5DF2;&#x521B;&#x5EFA;&#x597D;&#x7684;<code>git-demo</code> &#x9879;&#x76EE;,&#x63A5;&#x4E0B;&#x6765;&#x51C6;&#x5907;&#x5C06;&#x5176;&#x514B;&#x9686;&#x5230;&#x672C;&#x5730;&#x7535;&#x8111;.</p>
<p><img src="images/github-repository-created.png" alt="github-repository-created.png"></p>
<h2 id="&#x514B;&#x9686;&#x5230;&#x672C;&#x5730;&#x4ED3;&#x5E93;"><a name="&#x514B;&#x9686;&#x5230;&#x672C;&#x5730;&#x4ED3;&#x5E93;" class="anchor-navigation-ex-anchor" href="#&#x514B;&#x9686;&#x5230;&#x672C;&#x5730;&#x4ED3;&#x5E93;"><i class="fa fa-link" aria-hidden="true"></i></a>1.4. &#x514B;&#x9686;&#x5230;&#x672C;&#x5730;&#x4ED3;&#x5E93;</h2>
<p>&#x5C06;&#x8FDC;&#x7A0B;&#x9879;&#x76EE;&#x514B;&#x9686;&#x5230;&#x672C;&#x5730;&#x5DE5;&#x4F5C;&#x7A7A;&#x95F4;,&#x548C;&#x4E4B;&#x524D;&#x672C;&#x5730;&#x4ED3;&#x5E93;&#x7684;&#x5F00;&#x53D1;&#x6D41;&#x7A0B;&#x4E00;&#x6837;,&#x4F8B;&#x5982;<code>add commit status</code> &#x7B49;&#x7B49;,&#x552F;&#x4E00;&#x4E0D;&#x540C;&#x7684;&#x662F;,&#x591A;&#x4E86;&#x4E00;&#x6B65; <code>push</code> &#x547D;&#x4EE4;,&#x5373;&#x672C;&#x5730;&#x4ED3;&#x5E93;&#x7684;&#x6700;&#x65B0;&#x7248;&#x672C;&#x9700;&#x8981;&#x63A8;&#x9001;&#x7ED9;&#x8FDC;&#x7A0B;&#x4ED3;&#x5E93;&#x4E2D;,&#x53EA;&#x6709;&#x8FD9;&#x6837;&#x5176;&#x4ED6;&#x5C0F;&#x4F19;&#x4F34;&#x624D;&#x80FD;&#x4ECE;&#x8FDC;&#x7A0B;&#x4ED3;&#x5E93;&#x62C9;&#x53D6;&#x6700;&#x65B0;&#x7248;&#x672C;,&#x8FDB;&#x800C;&#x624D;&#x80FD;&#x770B;&#x5230;&#x4F60;&#x7684;&#x4EE3;&#x7801;,&#x56E0;&#x800C;&#x6253;&#x7834;&#x5404;&#x81EA;&#x4E3A;&#x653F;&#x5C40;&#x9762;,&#x5B9E;&#x73B0;&#x56E2;&#x961F;&#x534F;&#x540C;&#x5F00;&#x53D1;.</p>
<pre><code># &#x514B;&#x9686;&#x5230;&#x672C;&#x5730;&#x4ED3;&#x5E93;
git clone git@github.com:xinwuyun/git-demo.git

# &#x5207;&#x6362;&#x5230;&#x5F53;&#x524D;&#x9879;&#x76EE;
cd git-demo

# &#x521B;&#x5EFA;&#x65B0;&#x6587;&#x4EF6;
touch test.txt
echo &quot;add test.txt&quot; &gt; test.txt

# &#x6DFB;&#x52A0;&#x6587;&#x4EF6;&#x5230;&#x6682;&#x5B58;&#x533A;
git add test.txt

# &#x63D0;&#x4EA4;&#x6587;&#x4EF6;&#x5230;&#x672C;&#x5730;&#x4ED3;&#x5E93;
git commit -m &quot;add test.txt&quot;

# &#x63A8;&#x9001;&#x5230;&#x8FDC;&#x7A0B;&#x4ED3;&#x5E93;
git push origin master
</code></pre><p>&#x63D0;&#x4EA4;&#x5B8C;&#x6210;&#x540E;,&#x767B;&#x5F55; <code>github</code> &#x7F51;&#x7AD9;,&#x5237;&#x65B0;&#x5F53;&#x524D;&#x9879;&#x76EE; <code>git-demo</code> ,&#x5E94;&#x8BE5;&#x80FD;&#x770B;&#x5230;&#x6211;&#x4EEC;&#x521A;&#x521A;&#x63D0;&#x4EA4;&#x7684;&#x65B0;&#x6587;&#x4EF6;<code>test.txt</code>.</p>
<p><img src="images/github-repository-updated.png" alt="github-repository-updated.png"></p>
<h2 id="&#x6DFB;&#x52A0;&#x4ED3;&#x5E93;&#x5173;&#x8054;"><a name="&#x6DFB;&#x52A0;&#x4ED3;&#x5E93;&#x5173;&#x8054;" class="anchor-navigation-ex-anchor" href="#&#x6DFB;&#x52A0;&#x4ED3;&#x5E93;&#x5173;&#x8054;"><i class="fa fa-link" aria-hidden="true"></i></a>1.5. &#x6DFB;&#x52A0;&#x4ED3;&#x5E93;&#x5173;&#x8054;</h2>
<p>&#x6DFB;&#x52A0;&#x672C;&#x5730;&#x4ED3;&#x5E93;&#x548C;&#x8FDC;&#x7A0B;&#x4ED3;&#x5E93;&#x4E4B;&#x95F4;&#x5173;&#x8054;,&#x9ED8;&#x8BA4;&#x672C;&#x5730;&#x4ED3;&#x5E93;&#x5206;&#x652F;&#x540D;&#x548C;&#x8FDC;&#x7A0B;&#x4ED3;&#x5E93;&#x5206;&#x652F;&#x540D;&#x76F8;&#x540C;</p>
<pre><code>git remote add origin2 git@github.com:xinwuyun/git-demo.git
</code></pre><h2 id="&#x67E5;&#x770B;&#x8FDC;&#x7A0B;&#x4ED3;&#x5E93;"><a name="&#x67E5;&#x770B;&#x8FDC;&#x7A0B;&#x4ED3;&#x5E93;" class="anchor-navigation-ex-anchor" href="#&#x67E5;&#x770B;&#x8FDC;&#x7A0B;&#x4ED3;&#x5E93;"><i class="fa fa-link" aria-hidden="true"></i></a>1.6. &#x67E5;&#x770B;&#x8FDC;&#x7A0B;&#x4ED3;&#x5E93;</h2>
<p>&#x67E5;&#x770B;&#x5F53;&#x524D;&#x914D;&#x7F6E;&#x6709;&#x54EA;&#x4E9B;&#x8FDC;&#x7A0B;&#x4ED3;&#x5E93;</p>
<pre><code>git remote
</code></pre><blockquote>
<p>&#x6267;&#x884C;&#x65F6;&#x52A0;&#x4E0A;<code>-v</code> &#x53C2;&#x6570;&#x80FD;&#x591F;&#x67E5;&#x770B;&#x522B;&#x540D;&#x5173;&#x8054;&#x7684;&#x5177;&#x4F53;&#x5730;&#x5740;,&#x5373; <code>git remote -v</code></p>
</blockquote>
<h2 id="&#x4E0B;&#x8F7D;&#x8FDC;&#x7A0B;&#x4ED3;&#x5E93;"><a name="&#x4E0B;&#x8F7D;&#x8FDC;&#x7A0B;&#x4ED3;&#x5E93;" class="anchor-navigation-ex-anchor" href="#&#x4E0B;&#x8F7D;&#x8FDC;&#x7A0B;&#x4ED3;&#x5E93;"><i class="fa fa-link" aria-hidden="true"></i></a>1.7. &#x4E0B;&#x8F7D;&#x8FDC;&#x7A0B;&#x4ED3;&#x5E93;</h2>
<p>&#x4ECE;&#x8FDC;&#x7A0B;&#x4ED3;&#x5E93;&#x4E0B;&#x8F7D;&#x6700;&#x65B0;&#x5206;&#x652F;&#x6570;&#x636E;</p>
<pre><code>git fetch
</code></pre><blockquote>
<p>&#x6CE8;&#x610F;: &#x8BE5;&#x547D;&#x4EE4;&#x5E76;&#x4E0D;&#x4F1A;&#x81EA;&#x52A8;&#x5408;&#x5E76;&#x5F53;&#x524D;&#x5206;&#x652F;,&#x5982;&#x9700;&#x8981;&#x5408;&#x5E76;,&#x9700;&#x624B;&#x52A8;&#x6267;&#x884C;<code>git merge</code> &#x547D;&#x4EE4;</p>
</blockquote>
<h2 id="&#x62C9;&#x53D6;&#x8FDC;&#x7A0B;&#x4ED3;&#x5E93;"><a name="&#x62C9;&#x53D6;&#x8FDC;&#x7A0B;&#x4ED3;&#x5E93;" class="anchor-navigation-ex-anchor" href="#&#x62C9;&#x53D6;&#x8FDC;&#x7A0B;&#x4ED3;&#x5E93;"><i class="fa fa-link" aria-hidden="true"></i></a>1.8. &#x62C9;&#x53D6;&#x8FDC;&#x7A0B;&#x4ED3;&#x5E93;</h2>
<p>&#x4ECE;&#x8FDC;&#x7A0B;&#x4ED3;&#x5E93;&#x62C9;&#x53D6;&#x6700;&#x65B0;&#x5206;&#x652F;&#x6570;&#x636E;,&#x81EA;&#x52A8;&#x5C1D;&#x8BD5;&#x5408;&#x5E76;&#x5230;&#x5F53;&#x524D;&#x5206;&#x652F;,&#x5982;&#x6709;&#x51B2;&#x7A81;,&#x9700;&#x5148;&#x89E3;&#x51B3;&#x51B2;&#x7A81;&#x518D;&#x5408;&#x5E76;&#x5230;&#x5F53;&#x524D;&#x5206;&#x652F;.</p>
<pre><code>git pull
</code></pre><blockquote>
<p><a href="../GLOSSARY.html#git" class="glossary-term" title="&#x5206;&#x5E03;&#x5F0F;&#x7248;&#x672C;&#x63A7;&#x5236;&#x7CFB;&#x7EDF;,&#x8BE6;&#x60C5;&#x8BF7;&#x53C2;&#x8003; https://xinwuyun.github.io/git/">git</a> pull &#x76F8;&#x5F53;&#x4E8E; <a href="../GLOSSARY.html#git" class="glossary-term" title="&#x5206;&#x5E03;&#x5F0F;&#x7248;&#x672C;&#x63A7;&#x5236;&#x7CFB;&#x7EDF;,&#x8BE6;&#x60C5;&#x8BF7;&#x53C2;&#x8003; https://xinwuyun.github.io/git/">git</a> fetch + <a href="../GLOSSARY.html#git" class="glossary-term" title="&#x5206;&#x5E03;&#x5F0F;&#x7248;&#x672C;&#x63A7;&#x5236;&#x7CFB;&#x7EDF;,&#x8BE6;&#x60C5;&#x8BF7;&#x53C2;&#x8003; https://xinwuyun.github.io/git/">git</a> merge</p>
</blockquote>
<h2 id="&#x63A8;&#x9001;&#x8FDC;&#x7A0B;&#x5206;&#x652F;"><a name="&#x63A8;&#x9001;&#x8FDC;&#x7A0B;&#x5206;&#x652F;" class="anchor-navigation-ex-anchor" href="#&#x63A8;&#x9001;&#x8FDC;&#x7A0B;&#x5206;&#x652F;"><i class="fa fa-link" aria-hidden="true"></i></a>1.9. &#x63A8;&#x9001;&#x8FDC;&#x7A0B;&#x5206;&#x652F;</h2>
<p>&#x5C06;&#x672C;&#x5730;&#x6700;&#x65B0;&#x7248;&#x672C;&#x63A8;&#x9001;&#x5230;&#x8FDC;&#x7A0B;&#x4ED3;&#x5E93;</p>
<pre><code>git push origin master
</code></pre><p>&#x4EE5;&#x4E0A;&#x547D;&#x4EE4;&#x5C06;&#x672C;&#x5730; <code>master</code> &#x5206;&#x652F;&#x63A8;&#x9001;&#x5230; <code>origin</code> &#x8FDC;&#x7A0B;&#x4ED3;&#x5E93;&#x7684; <code>master</code> &#x5206;&#x652F;</p>
<h2 id="&#x5220;&#x9664;&#x8FDC;&#x7A0B;&#x4ED3;&#x5E93;"><a name="&#x5220;&#x9664;&#x8FDC;&#x7A0B;&#x4ED3;&#x5E93;" class="anchor-navigation-ex-anchor" href="#&#x5220;&#x9664;&#x8FDC;&#x7A0B;&#x4ED3;&#x5E93;"><i class="fa fa-link" aria-hidden="true"></i></a>1.10. &#x5220;&#x9664;&#x8FDC;&#x7A0B;&#x4ED3;&#x5E93;</h2>
<pre><code>git remote rm origin
</code></pre><script type="text/javascript">var targetUl = document.getElementsByClassName('page-inner')[0].getElementsByTagName('ul')[0];if(targetUl.getElementsByTagName('a').length>0){targetUl.className='toc';}</script>

<pre><code class="lang-html">&#x4F5C;&#x8005;: &#x96EA;&#x4E4B;&#x68A6;
&#x94FE;&#x63A5;: https://xinwuyun.github.io/github/
&#x6765;&#x6E90;: &#x96EA;&#x4E4B;&#x68A6;
&#x672C;&#x6587;&#x539F;&#x521B;&#x53D1;&#x5E03;&#x4E8E;&#x300C;&#x96EA;&#x4E4B;&#x68A6;&#x300D;,&#x8F6C;&#x8F7D;&#x8BF7;&#x6CE8;&#x660E;&#x51FA;&#x5904;,&#x8C22;&#x8C22;&#x5408;&#x4F5C;!
</code></pre>
<p><img src="https://xinwuyun.github.io/xinwuyun-wechat-open.png" alt="https://xinwuyun.github.io/xinwuyun-wechat-open.png"></p>
<div id="gitalk-container"></div> 

<footer class="page-footer">
&#xA9; 2009-2021 xinwuyun.cn &#x7248;&#x6743;&#x6240;&#x6709; <a href="https://beian.miit.gov.cn/" target="_blank">&#x6D59;ICP&#x5907;18042346&#x53F7;</a>
</footer>
                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="../git/summary/cheatsheet-translation.html" class="navigation navigation-prev " aria-label="Previous page: 备忘录[译]">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="speedup.html" class="navigation navigation-next " aria-label="Next page: github 访问速度太慢">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"github 入门教程","level":"2.3","depth":1,"next":{"title":"github 访问速度太慢","level":"2.3.1","depth":2,"path":"github/speedup.md","ref":"github/speedup.md","articles":[]},"previous":{"title":"备忘录[译]","level":"2.2.6.2","depth":3,"path":"git/summary/cheatsheet-translation.md","ref":"git/summary/cheatsheet-translation.md","articles":[]},"dir":"ltr"},"config":{"plugins":["toc","-lunr","-search","search-plus","splitter","-sharing","sharing-plus","expandable-chapters-small","anchor-navigation-ex","edit-link-plus","code","chart","favicon-absolute","github-buttons","advanced-emoji","rss","sitemap-general","copyright","mygitalk","donate","icp","diff","simple-mind-map","hide-element","audio_image","mermaid-gb3","baidu-tongji-with-multiple-channel","google-tongji-with-multiple-channel"],"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"diff":{"type":"markdown","method":"diffChars","options":{}},"baidu-tongji-with-multiple-channel":{"url":"https://hm.baidu.com/hm.js","multipleChannelConfig":{"localhost":{"token":"5273b2f99de3bc190886abb53f62267e"},"xinwuyun.tech":{"token":"468a97b20b79bc025d27afbee73d2f39"},"blog.xinwuyun.cn":{"token":"606f5db455f771889dcfd16bb2bd313b"},"xinwuyun.github.io":{"token":"5273b2f99de3bc190886abb53f62267e"},"xinwuyun.gitee.io":{"token":"60ec676f32be4579eb53a430e153f677"},"xinwuyun.gitlab.io":{"token":"187a0e5601c4e4987cdb5b8df09c9b21"},"xinwuyun.gitbook.io":{"token":"6e2ee1b7bea146b2d6d9382bbf803083"}}},"splitter":{},"google-tongji-with-multiple-channel":{"multipleChannelConfig":{"localhost":{"token":"UA-140787039-2"},"xinwuyun.gitbook.io":{"token":"UA-140787039-1"},"xinwuyun.github.io":{"token":"UA-140787039-2"},"xinwuyun.gitee.io":{"token":"UA-140787039-3"},"xinwuyun.gitlab.io":{"token":"UA-140787039-4"},"xinwuyun.tech":{"token":"UA-140787039-5"},"blog.xinwuyun.cn":{"token":"UA-140787039-6"}},"url":"https://www.googletagmanager.com/gtag/js"},"copyright":{"copyProtect":false,"site":"https://xinwuyun.github.io/","author":"雪之梦","website":"雪之梦","image":"https://xinwuyun.github.io/xinwuyun-wechat-open.png"},"toc":{"addClass":true,"className":"toc"},"edit-link-plus":{"label":"编辑本页","base":{"xinwuyun.github.io":"https://github.com/xinwuyun/xinwuyun.github.io/edit/master","xinwuyun.gitlab.io":"https://gitlab.com/xinwuyun/xinwuyun.gitlab.io/edit/master","xinwuyun.gitee.io":"https://gitee.com/xinwuyun/xinwuyun/edit/master"},"defaultBase":"https://github.com/xinwuyun/xinwuyun.github.io/edit/master"},"sharing-plus":{"qq":false,"all":["facebook","google","twitter","instapaper","linkedin","pocket","stumbleupon"],"douban":false,"facebook":true,"weibo":false,"instapaper":false,"whatsapp":false,"hatenaBookmark":false,"twitter":true,"messenger":false,"line":false,"vk":false,"pocket":true,"google":false,"viber":false,"stumbleupon":false,"qzone":false,"linkedin":false},"code":{"copyButtons":true},"donate":{"title":"","button":"赏","wechat":"/wechat.jpg","alipay":"/alipay.jpg","wechatText":"微信","alipayText":"支付宝"},"favicon-absolute":{"favicon":"/favicon.ico","appleTouchIconPrecomposed152":"/apple-touch-icon-precomposed-152.png","appleTouchIconMore":{},"appleTouchIconPrecomposedMore":{}},"sitemap-general":{"prefix":"https://xinwuyun.github.io/"},"hide-element":{"elements":["a.gitbook-link[href='https://www.gitbook.com']"]},"fontsettings":{"theme":"white","family":"sans","size":2},"rss":{"categories":["markdown","git","github","gitbook","java","php"],"title":"雪之梦","description":"雪之梦静态网站,源码托管于 https://github.com/xinwuyun/xinwuyun.github.io","author":"xinwuyun","site_url":"https://xinwuyun.github.io/","feed_url":"https://xinwuyun.github.io/rss","managingEditor":"zrwangxdu@outlook.com","webMaster":"zrwangxdu@outlook.com"},"audio_image":{},"highlight":{},"mermaid-gb3":{},"anchor-navigation-ex":{"showLevel":true,"associatedWithSummary":true,"mode":"float","showGoTop":true,"printLog":false,"multipleH1":true,"float":{"floatIcon":"fa fa-navicon","showLevelIcon":false,"level1Icon":"","level2Icon":"","level3Icon":""},"pageTop":{"showLevelIcon":false,"level1Icon":"","level2Icon":"","level3Icon":""}},"icp":{"link":"https://beian.miit.gov.cn/","style":{},"label":"&copy 2009-2021 xinwuyun.cn 版权所有 ","number":"浙ICP备18042346号"},"github-buttons":{"buttons":[{"user":"xinwuyun","repo":"xinwuyun.github.io","type":"star","size":"small"}]},"expandable-chapters-small":{},"mygitalk":{"flipMoveOptions":{},"clientID":"3f62415a283d19cbd696","number":-1,"perPage":10,"proxy":"https://cors-anywhere.herokuapp.com/https://github.com/login/oauth/access_token","admin":["xinwuyun"],"createIssueManually":false,"distractionFreeMode":false,"repo":"xinwuyun.github.io","owner":"xinwuyun","enableHotKey":true,"clientSecret":"aed0e1db0620bf5d0e3a3f0225f801997ad74e58","pagerDirection":"last","labels":["Gitalk"]},"advanced-emoji":{"embedEmojis":false},"sharing":{"qq":true,"all":["facebook","google","twitter","weibo","instapaper","linkedin","pocket","stumbleupon"],"douban":true,"facebook":false,"weibo":true,"instapaper":false,"whatsapp":false,"hatenaBookmark":false,"twitter":false,"messenger":false,"line":false,"vk":false,"pocket":false,"google":false,"viber":false,"stumbleupon":false,"qzone":true,"linkedin":false},"simple-mind-map":{"type":"markdown","preset":"colorful","linkShape":"diagonal","autoFit":true,"style":{}},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"chart":{"type":"c3"},"search-plus":{}},"theme":"default","author":"xinwuyun","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"雪之梦","language":"zh-hans","links":{"sidebar":{"技术博客":"https://blog.xinwuyun.cn/"}},"gitbook":"3.2.3","description":"雪之梦,xinwuyun 搭建的 Gitbook 个人博客,详情请访问 https://xinwuyun.github.io/"},"file":{"path":"github/README.md","mtime":"2020-09-05T14:33:57.968Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2022-02-02T12:37:44.450Z"},"basePath":"..","book":{"language":""}});
        });
    </script>
</div>

        
    
    <script src="../gitbook/gitbook.js"></script>
    <script src="../gitbook/theme.js"></script>
    
        
        <script src="../gitbook/gitbook-plugin-search-plus/jquery.mark.min.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search-plus/search.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-splitter/splitter.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-sharing-plus/buttons.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-expandable-chapters-small/expandable-chapters-small.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-edit-link-plus/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-code/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-github-buttons/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-rss/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-copyright/plugin.js"></script>
        
    
        
        <script src="https://cdn.bootcss.com/blueimp-md5/2.12.0/js/md5.min.js"></script>
        
    
        
        <script src="https://unpkg.com/gitalk/dist/gitalk.min.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-mygitalk/mygitalk.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-donate/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-simple-mind-map/bundle.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-hide-element/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-mermaid-gb3/book/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-baidu-tongji-with-multiple-channel/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-google-tongji-with-multiple-channel/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    <script src="../gitbook/gitbook-plugin-mermaid-gb3/mermaid/mermaid.min.js"></script>

    </body>
</html>

